﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Threading;
using McCloudCore;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.ServiceRuntime;
using Microsoft.WindowsAzure.StorageClient;

namespace WorkerRole
{
    public class WorkerRole : RoleEntryPoint
    {
        public override void Run()
        {
            McControl.process();   
        }

        public override bool OnStart()
        {
            ServicePointManager.DefaultConnectionLimit = 30;          
            McControl.onstart();  
            return base.OnStart(); 
        }
    }
}
